package com.sqznkj.Dao;

import com.sqznkj.entity.comIntro;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface comIntroDao {
    @Insert("insert into comIntro (content) values (#{content})")
    int add(comIntro com);
    @Update("update comIntro set content = #{content} where id = 1")
    int update(comIntro com);
    @Select("select * from comIntro where id = 1")
    comIntro getComIntro();
}
